<script >
export default {
  name: "El_Header",
  methods:{
    logout(){
      window.sessionStorage.clear();
      this.$router.push('/login');
    }
  }
}
</script>

<template>
    <div>
      <img src="../assets/logo.svg" alt="" height="120px"/>
      <span>机票价格预测系统</span>
    </div>
    <el-button type="info" @click="logout">退出</el-button>
</template>

<style scoped lang="less">

</style>